package xyz.yizhifeimao.service;

import com.github.pagehelper.PageInfo;
import xyz.yizhifeimao.common.ServiceResponse;
import xyz.yizhifeimao.pojo.Product;
import xyz.yizhifeimao.vo.ProductDetailVo;

public interface IProductService {

    ServiceResponse saveOrUpdateProduct(Product product);

    ServiceResponse<String> setSaleStatus(Integer productId, Integer status);

    ServiceResponse<ProductDetailVo> managerProductDetail(Integer productId);

    ServiceResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ServiceResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);

    ServiceResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServiceResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);

}
